package com.goldenlight.fvms.manager.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * <p>
 * 车辆类型表
 * </p>
 *
 * @author luocx
 * @since 2018-12-08
 */
@TableName("tb_car_type")
public class CarType implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 车辆类型编号
     */
    @TableId(value = "CAR_TYPE", type = IdType.AUTO)
    private Long carType;

    /**
     * 车辆类型
     */
    @TableField("NAME")
    @NotEmpty(message = "车辆类型不能为空")
    @NotBlank(message = "车辆类型不能为空")
    private String name;


    public Long getCarType() {
        return carType;
    }

    public void setCarType(Long carType) {
        this.carType = carType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "CarType{" +
        "carType=" + carType +
        ", name=" + name +
        "}";
    }
}
